package com.sunjob.loginserver;

import com.sunjob.common.exceptionHandler.GlobalExceptionHandler;
import com.sunjob.common.feignInterceptor.FeignTokenInterceptor;
import com.sunjob.common.redisTemplateConfig.RedisTemplateConfig;
import com.sunjob.common.saTokenInterceptor.SaTokenInterceptorConfig;
import com.sunjob.mrosystem.logrecorder.LogRecorderFactoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@SpringBootApplication
@EnableDiscoveryClient
@Import({RedisTemplateConfig.class,LogRecorderFactoryImpl.class, FeignTokenInterceptor.class, SaTokenInterceptorConfig.class, GlobalExceptionHandler.class})
@EnableFeignClients
public class LoginServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(LoginServerApplication.class, args);
    }
}
